<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${basePath}/css/register.css"/>
<link rel="stylesheet" type="text/css" href="${basePath}/css/form.css"/>
<link rel="stylesheet" type="text/css" href="${basePath}/css/user.css"/>
<script type="text/javascript">
	var contextPath = '${basePath}'; // 上下文 js 使用
</script>
<script type="text/javascript" src="${basePath}/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="${basePath}/js/jquery.validate-1.5.js"></script>
<script type="text/javascript" src="${basePath}/js/base.js"></script> 					<!-- 常用 js -->
<script type="text/javascript" src="${basePath}/js/core.js"></script> 	
<script type="text/javascript" src="${basePath}/js/pager.js"></script> 	
<title>MSN人才网--个人会员注册</title>
<style type="text/css">
</style>
<script type="text/javascript">
function edus_check(){
 if (document.edus.num_h_year.value==""){
	 alert("-请输入入学时间！-");
	 document.edus.num_h_year.focus();
	 return false;
	} 
	 if (document.edus.num_e_year.value==""){
	 alert("-请输入毕业时间！-");
	 document.edus.num_e_year.focus();
	 return false;
	}
	 if (document.edus.v_schoolname.value==""){
	 alert("-请输入毕业院校名称！-");
	 document.edus.v_schoolname.focus();
	 return false;
	}

	 
}
function perx_check(){
    if (document.perx.num_h_year.value==""){
	 alert("-请输入入学时间！-");
	 document.perx.num_h_year.focus();
	 return false;
	}
	 if (document.perx.num_e_year.value==""){
	 alert("-请输入毕业时间！-");
	 document.perx.num_e_year.focus();
	 return false;
	}
	 if (document.perx.v_schoolname.value==""){
	 alert("-请输入培训机构！-");
	 document.perx.v_schoolname.focus();
	 return false;
	}
   }
</script>

</head>
<body>

<div class="mean">
  <!-- 引入侧面导航栏 -->
  <%@include file="left_menu.jsp" %>

  <div class="clearance">&nbsp;</div>
  <div class="right-content">
  



<!--start by 个人帐号-->
<div class="individual_message">教育经历</div>
<!--start 基本信息填写-->

  <div class="education_border">
    <ul class="education">
      <li>起止时间</li>
      <li>毕业院校</li>
      <li>所学专业</li>
      <li>学&nbsp;&nbsp;历</li>
      <li>证&nbsp;&nbsp;书</li>
      <li>操&nbsp;&nbsp;作</li>
    </ul>
    <div class="clear"></div>
    <c:forEach items="${eduslist}" var="obj">
    <ul class="education">
      <li> ${obj.h_year }年${obj.h_month }月-${obj.e_year }年${obj.e_month }月</li>
      <li>${obj.schoolname }</li>
      <li>${obj.special }</li>
      <li>
      <c:if test="${obj.edulevel =='0'}">初中</c:if>
      <c:if test="${obj.edulevel =='1'}">高中</c:if>
      <c:if test="${obj.edulevel =='2'}">中专(技校)</c:if>
      <c:if test="${obj.edulevel =='3'}">大专</c:if>
      <c:if test="${obj.edulevel =='4'}">本科</c:if>
      <c:if test="${obj.edulevel =='5'}">硕士</c:if>
      <c:if test="${obj.edulevel =='6'}">博士</c:if>
      </li>
      <li>${obj.cert }</li>
      <li><a href="education_edit.asp?action=edus&eduid=${obj.edus_id }">编辑</a>&nbsp;&nbsp; 
      <a href="javascript:void(0);" onclick="del_educ('${obj.edus_id }')">删除</a></li>
    </ul>
    <div class="clear"></div>
</c:forEach>
  </div>
  <div class="individual_message">添加教育经历</div>
  
  <form action="${basePath}/user/person!addEdus.do" method="post" name="edus" id="edus"  onsubmit="return edus_check();">
  <input   type="hidden" name="num_edutype" value="0"/>
  <div class="basic">

    <dl>
      <dt class="datum"><font class="clew">*</font>&nbsp;起止时间：</dt>
      <dd>
        <select name="num_h_year" id="num_h_year" class="selectframe">
<%
 for(int i=1980;i<2013;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
</select>
&nbsp;年
<select name="num_h_month" id="num_h_month" class="selectframe">
<%
 for(int i=1;i<13;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
</select>
&nbsp;月 
至
<select name="num_e_year" id="num_e_year" class="selectframe">
<%
 for(int i=1980;i<2013;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
</select>
&nbsp;年
<select name="num_e_month" id="num_e_month" class="selectframe">
<%
 for(int i=1;i<13;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
    </select>
    &nbsp;月 </dd>
</dl>
<div class="clear buttom"></div>
<dl>
  <dt class="datum"><font class="clew">*</font>&nbsp;毕业院校：</dt>
  <dd class="import">
    <input type="text"  name="v_schoolname" id="v_schoolname" size="35" class="textframe"/>
  </dd>
  <dd class="contents">&nbsp;如：华南师范大学</dd>
</dl>
<div class="clear buttom"></div>
<dl>
  <dt class="datum">&nbsp;专业名称：</dt>
  <dd class="import">
    <input type="text"  name="v_special" id="v_special" size="35" class="textframe"/>
  </dd>
  <dd class="contents">&nbsp;如:信息与技术</dd>
</dl>
<div class="clear buttom"></div>
<dl>
  <dt class="datum"><font class="clew">*</font>&nbsp;最高学历：</dt>
  <dd>
    <select name="num_edulevel" id="num_edulevel" class="selectframe">
       <option value="0">初中</option>
        <option value="1">高中</option>
        <option  value="2">中专</option>
        <option  value="3" selected>大专</option>
        <option  value="4">本科</option>
        <option  value="5">硕士</option>
        <option  value="6">博士</option>
    </select>
  </dd>
</dl>
<div class="clear buttom"></div>
<dl>
  <dt class="datum">&nbsp;证书编号：</dt>
  <dd class="import">
    <input type="text"  name="v_cert" id="v_cert" size="35" class="textframe" value=""/>
  </dd>
  <dd class="contents">&nbsp;如:4302578</dd>
</dl>
<div class="clear buttom"></div>
<div>
  <dl>
    <dt class="datum">&nbsp;</dt>
    <dd>
      <input type="submit" name="submit" value="保存教育经历"  class="button " style="margin-left:5px; margin-top:10px;"/>
      </dd>
    </dl>
  </div>
</div>
</form>



<div class="individual_message">培训经历</div>
<div class="education_border">
  <ul class="cultivate">
    <li>起止时间</li>
    <li>培训机构</li>
    <li>培训课程</li>
    <li>所获证书</li>
    <li>操&nbsp;&nbsp;作</li>
  </ul>
  <div class="clear"></div>
    <c:forEach items="${pxlist}" var="obj">
  
  <ul class="cultivate">
     <li> ${obj.h_year }年${obj.h_month }月-${obj.e_year }年${obj.e_month }月</li>
      <li>${obj.schoolname }</li>
      <li>${obj.special }</li>
    <li>${obj.cert }</li>
    <li><a href="education_edit.asp?action=perx&eduid=${obj.edus_id } ">编辑</a>&nbsp;&nbsp; <a href="javascript:void(0);" onclick="del_educ('${obj.edus_id }')">删除</a></li>
  </ul>
  <div class="clear"></div>
 </c:forEach>
</div>
<div class="individual_message">添加培训经历</div>

  <form action="${basePath}/user/person!addEdus.do" method="post"  name="perx" id="perx"  onsubmit="return perx_check();">
  <input   type="hidden" name="num_edutype" value="1"/>
<div class="basic">
  <dl>
    <dt class="datum"><font class="clew">*</font>&nbsp;起止时间：</dt>
    <dd>
      <select name="num_h_year" id="num_h_year" class="selectframe">
<%
 for(int i=1980;i<2013;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
</select>
&nbsp;年
<select name="num_h_month" id="num_h_month" class="selectframe">
<%
 for(int i=1;i<13;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
</select>
&nbsp;月 
至
<select name="num_e_year" id="num_e_year" class="selectframe">
<%
 for(int i=1980;i<2013;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
</select>
&nbsp;年
<select name="num_e_month" id="num_e_month" class="selectframe">
<%
 for(int i=1;i<13;i++){
	 out.print("<option value="+i+">"+i+"</option>"); 
 }
%>
      </select>
      &nbsp;月 </dd>
  </dl>
  <div class="clear buttom"></div>
  <dl>
    <div class="clear buttom"></div>
    <dl>
      <dt class="datum"><font class="clew">*</font>&nbsp;培训机构：</dt>
      <dd class="import">
        <input type="text"  name="v_schoolname" id="v_schoolname" size="35" class="textframe"/>
      </dd>
      <dd class="contents">&nbsp;如：清华IT</dd>
    </dl>
    <div class="clear"></div>
    <div class="buttom"></div>
    <dl>
      <dt class="datum">&nbsp;培训课程：</dt>
      <dd class="import">
        <input type="text"  name="v_special" id="v_special" size="35" class="textframe"/>
      </dd>
      <dd class="contents">&nbsp;如：JAVA,C语言</dd>
    </dl>
    <div class="clear"></div>
    <div class="buttom"></div>
    <dl>
      <dt class="datum">&nbsp;所获证书：</dt>
      <dd class="import">
        <input type="text"  name="v_cert" id="v_cert" size="35" class="textframe"/>
      </dd>
      <dd class="contents">&nbsp;如：学士学位证书</dd>
    </dl>
    <div class="clear buttom"></div>
  </dl>
</div>




<div>
  <dl>
    <dt class="datum">&nbsp;</dt>
    <dd>
      <input type="submit" name="submit" value="保存培训信息"  class="button " style="margin-left:5px; margin-top:10px;" />
    </dd>
  </dl>
</div>

</form>

<div class="individual_message">教育培训</div>
<form action="${basePath}/user/person!updateBaseEdus.do" method="post"  name="edit" id="edit">
<div class="basic">
  <dl>
    <dt class="datum">&nbsp;最高学历：</dt>
    <dd>
      <select name="v_xueli" id="v_xueli" class="selectframe">
          <option value="0">初中</option>
           <option  value="1">高中</option>
           <option  value="2">中专</option>
           <option  value="3">大专</option>
           <option  value="4">本科</option>
           <option  value="5">硕士</option>
           <option  value="6">博士</option>
      </select>
    </dd>
  </dl>
  <div class="clear buttom"></div>
  <dl>
    <dt class="datum">&nbsp;毕业院校：</dt>
    <dd class="import">
      <input type="text"  name="v_xuexiao" id="v_xuexiao" value="${personInfo.xuexiao }" size="35" class="textframe"/>
    </dd>
    <dd class="contents">&nbsp;如：华南师范大学</dd>
  </dl>
  <div class="clear buttom"></div>
  <dl>
    <dt class="datum">&nbsp;毕业年份：</dt>
    <dd class="import">
      <input type="text"  name="v_byear" id="v_byear"  value="${personInfo.byear }" size="10" class="textframe"/>
    </dd>
    <dd class="contents">&nbsp;如:1988</dd>
  </dl>
  <div class="clear buttom"></div>
  <dl>
    <dt class="datum">&nbsp;专业类别：</dt>
    <dd>
      <select name="v_zyclass" id="v_zyclass" class="selectframe">
       <option  value=计算机类>计算机类</option>
 <option value=管理类>管理类</option>
 <option value=行政管理>行政管理</option>
 <option value=党政管理>党政管理</option>
 <option value=管理工程类>管理工程类</option>
 <option value=工科>工科</option>
 <option value=机械制造类>机械制造类</option>
 <option value=仪器仪表类>仪器仪表类</option>
 <option value=热工类>热工类</option>
 <option value=电气自动化>电气自动化</option>
 <option value=电子技术>电子技术</option>
 <option value=工业自动化>工业自动化</option>
 <option value=通信类>通信类</option>
 <option value=土建类>土建类</option>
 <option value=化工类>化工类</option>
 <option value=轻工/粮食/食品类>轻工/粮食/食品类</option>
 <option value=纺织类>纺织类</option>
 <option value=运输类>运输类</option>
 <option value=水利类>水利类</option>
 <option value=测绘类>测绘类</option>
 <option value=环境类>环境类</option>
 <option value=原子能类>原子能类</option>
 <option value=应用理科及力学类>应用理科及力学类</option>
 <option value=地质类>地质类</option>
 <option value=矿业类>矿业类</option>
 <option value=冶金类>冶金类</option>
 <option value=材料类>材料类</option>
 <option value=军工类>军工类</option>
 <option value=财经类>财经类</option>
 <option value=政法类>政法类</option>
 <option value=文科类>文科类</option>
 <option value=中国语言文学>中国语言文学</option>
 <option value=外语类>外语类</option>
 <option value=历史类>历史类</option>
 <option value=政治类>政治类</option>
 <option value=哲学类>哲学类</option>
 <option value=图书馆学>图书馆学</option>
 <option value=文科类其他专业>文科类其他专业</option>
 <option value=理科类>理科类</option>
 <option value=数学类>数学类</option>
 <option value=物理学类>物理学类</option>
 <option value=化学类>化学类</option>
 <option value=力学类>力学类</option>
 <option value=地学类>地学类</option>
 <option value=天文学类>天文学类</option>
 <option value=海洋学类>海洋学类</option>
 <option value=生物学类>生物学类</option>
 <option value=理科类其他专业>理科类其他专业</option>
 <option value=医药类>医药类</option>
 <option value=师范>师范</option>
 <option value=农科类>农科类</option>
 <option value=林科类>林科类</option>
 <option value=体育类>体育类</option>
 <option value=艺术>艺术</option>
 <option value=音乐类>音乐类</option>
 <option value=工艺美术类>工艺美术类</option>
 <option value=工业美术类>工业美术类</option>
 <option value=戏剧舞蹈类>戏剧舞蹈类</option>
 <option value=电影电视>电影电视</option>
 <option value=技工类>技工类</option> 
 <option value=其他>其他</option>
      </select>
    </dd>
  </dl>
  <div class="clear buttom"></div>
  <dl>
    <dt class="datum">&nbsp;专业名称：</dt>
    <dd class="import">
      <input type="text"  name="v_zhuanye" id="v_zhuanye" value="${personInfo.zhuanye }" size="35" class="textframe"/>
    </dd>
    <dd class="contents">&nbsp;如:信息与技术</dd>
  </dl>
  <div class="clear buttom"></div>
  <div class="basic">
    <dl>
      <dt class="datum">&nbsp;下&nbsp;一&nbsp;步：</dt>
      <dd class="import">
        <select name="forward" id="forward" class="selectframe">
          <option value="1">-返回本页-</option>
          <option value="2">-进入技能专长-</option>
          <option value="3">-返回管理中心-</option>
        </select>
      </dd>
    </dl>
  </div>
  <div class="clear"></div>
  <div class="buttom"></div>
  <!--end 基本信息填写-->
<div>
  <dl>
    <dt class="datum">&nbsp;</dt>
    <dd>
      <input type="submit" name="aaa" value="保存教育培训信息"  class="button " style="margin-left:5px; margin-top:10px;" />
        </dd>
      </dl>
    </div>
  </div>

</form>
<!--end by 个人帐号-->
<div class="clear"></div>
         


    
  </div>
</div>


<script type="text/javascript">

//初始化 表单信息
function init_base_educ(){
	setSelect('v_xueli', '${personInfo.xueli }');
	setSelect('v_zyclass', '${personInfo.zyclass }');
}
$(function(){
	init_base_educ();
});

function del_educ(edus_id){
	var url="${basePath}/user/person!delEdus.do?p=1&rmd="+Math.random();;
    var params={"edus_id":edus_id};
	jQuery.post(url,params,function(data){
		if("true"==$.trim(data)){
			alert('删除成功');
            return ;
	     }else{
          alert(data);
		   }

		});
	
}

</script>
</body>
</html>



